use livegoods

db.banner.insert({"path":"/group1/M00/00/00/rBEAA1_mpTWATQ4dABLGy04UWBI985.png"})
db.banner.insert({"path":"/group1/M00/00/00/rBEAA1_mpTaAJBJ7AAro96E3Lio717.png"})
db.banner.insert({"path":"/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png"})
db.banner.insert({"path":"/group1/M00/00/00/rBEAA1_mpTeAeZs9AAuC40wnByU338.png"})
db.banner.insert({"path":"/group1/M00/00/00/rBEAA1_mpTiAUesmABS0LiTh-88267.png"})
db.banner.insert({"path":"/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png"})


title： 标题
img：商品图片
link：跳转链接
sales：销量
recommendation：是否为热门（推荐）
recoSort：热门排序
city：所属城市

db.item.insert({"title":"北京的商品1","img":"/group1/M00/00/00/rBEAA1_mpTWATQ4dABLGy04UWBI985.png","link":"http://www.jd.com","sales":1,"recommendation":false,"recoSort":1,"city":"北京"});
db.item.insert({"title":"北京的商品2","img":"/group1/M00/00/00/rBEAA1_mpTaAJBJ7AAro96E3Lio717.png","link":"http://www.tmall.com","sales":2,"recommendation":true,"recoSort":1,"city":"北京"});
db.item.insert({"title":"北京的商品3","img":"/group1/M00/00/00/rBEAA1_mpTeAeZs9AAuC40wnByU338.png","link":"http://www.taobao.com","sales":3,"recommendation":true,"recoSort":1,"city":"北京"});
db.item.insert({"title":"北京的商品4","img":"/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png","link":"http://www.baidu.com","sales":4,"recommendation":true,"recoSort":1,"city":"北京"});
db.item.insert({"title":"北京的商品5","img":"/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png","link":"http://www.bjsxt.com","sales":5,"recommendation":true,"recoSort":1,"city":"北京"});
db.item.insert({"title":"上海的商品1","img":"/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png","link":"http://www.bjsxt.com","sales":6,"recommendation":false,"recoSort":1,"city":"上海"});
db.item.insert({"title":"上海的商品2","img":"/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png","link":"http://www.bjsxt.com","sales":7,"recommendation":true,"recoSort":1,"city":"上海"});
db.item.insert({"title":"上海的商品3","img":"/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png","link":"http://www.bjsxt.com","sales":8,"recommendation":true,"recoSort":1,"city":"上海"});
db.item.insert({"title":"上海的商品4","img":"/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png","link":"http://www.bjsxt.com","sales":9,"recommendation":true,"recoSort":1,"city":"上海"});
db.item.insert({"title":"上海的商品5","img":"/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png","link":"http://www.bjsxt.com","sales":10,"recommendation":true,"recoSort":1,"city":"上海"});





db.house.insert({ 
    title: "合租·龙博苑一区3居室-北卧",
    price: "130000",
    rentType: "整租",
    houseType: "273.97 ㎡",
    info: {
        years: "2002年",
        type: "4室1厅",
        level: "17/19层",
        style: "精装性",
        orientation: "朝南"
    },
   imgs:[
  "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png",
   "/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png",
	 "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png"
],
		city:"北京"
});



db.house.insert({ 
    title: "合租·天通苑一区3居室-北卧",
    price: "130000",
    rentType: "合租",
    houseType: "200.97 ㎡",
    info: {
        years: "2002年",
        type: "3室1厅",
        level: "17/19层",
        style: "精装性",
        orientation: "朝南"
    },
   imgs:[
  "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png",
   "/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png",
	 "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png"
],
		city:"北京"
});



db.house.insert({ 
    title: "合租·墩发-北卧",
    price: "5000",
    rentType: "整租",
    houseType: "30.97 ㎡",
    info: {
        years: "2002年",
        type: "一居室",
        level: "17/19层",
        style: "精装性",
        orientation: "朝南"
    },
   imgs:[
  "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png",
   "/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png",
	 "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png"
],
		city:"深圳"
});

db.house.insert({ 
    title: "合租·瑞月居-北卧",
    price: "1000",
    rentType: "整租",
    houseType: "50.97 ㎡",
    info: {
        years: "2002年",
        type: "一居室",
        level: "17/19层",
        style: "精装性",
        orientation: "朝南"
    },
   imgs:[
  "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png",
   "/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png",
	 "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png"
],
		city:"深圳"
});




db.house.insert({ 
    title: "合租·福森工具-北卧",
    price: "1000",
    rentType: "合租",
    houseType: "80.97 ㎡",
    info: {
        years: "2002年",
        type: "一居室",
        level: "17/19层",
        style: "精装性",
        orientation: "朝南"
    },
   imgs:[
  "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png",
   "/group1/M00/00/00/rBEAA1_mpTmAZsGRABHVEPBnO7M923.png",
	 "/group1/M00/00/00/rBEAA1_mpTWAfFePAAjIoXS-cuE112.png"
],
		city:"深圳"
});

修改房屋预定时间

db.house.update({}, {$set:{buytime:new Date("2021-02-05 00:00:00.000")}}, {multi:true})


评论测试数据

db.comment.insert({
	username:"18612345678",
	comment:"房子很干净，阳光很充足",
	star:4,
	houseId:"601b4fd0e90a00001d004753"
});

db.comment.insert({
	username:"135524312341",
	comment:"这房子完全没办法住了，价钱高的离谱，服务差的要命。重点是甲醛超标，必须给个差评",
	star:2,
	houseId:"601b4fd0e90a00001d004753"
});

db.comment.insert({
	username:"13552431234",
	comment:"卫生条件太差，隔音效果不好，楼下大马路。车来车往",
	star:5,
	houseId:"601b4fd0e90a00001d004753"
});

db.comment.insert({
	username:"13552431234",
	comment:"女朋友说再也不来了。隔音太差",
	star:2,
	houseId:"601b4fd0e90a00001d004753"
});

db.comment.insert({
	username:"13552431234",
	comment:"女朋友说再也不来了。隔音太差",
	star:2,
	houseId:"601b4fd0e90a00001d004753"
});

db.comment.insert({
	username:"13552431234",
	comment:"女朋友说再也不来了。隔音太差",
	star:2,
	houseId:"601b4fd0e90a00001d004753"
});







